package com.hxkj.dao.impl;

import com.hxkj.dao.FunctionDao;
import com.hxkj.domain.po.AuthFunction;
import com.hxkj.mapper.FunctionMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author Mrmas
 * @create 2018-05-21 18:09
 * @desc 功能数据层
 **/
@Service("functionDao")
public class FunctionDaoImpl implements FunctionDao{


    @Autowired
    private FunctionMapper functionMapper;


    @Override
    public List<AuthFunction> getFunctionList(AuthFunction authFunction) {
        return functionMapper.getFunctionList(authFunction);
    }

    @Override
    public List<AuthFunction> getFunctionListByStatus(AuthFunction authFunction) {
        return functionMapper.getFunctionListByStatus(authFunction);
    }

    @Override
    public int saveAuthFunction(AuthFunction authFunction) {
        return functionMapper.saveAuthFunction(authFunction);

    }

    @Override
    public int updateAuthFunction(AuthFunction authFunction) {

        return functionMapper.updateAuthFunction(authFunction);
    }

    @Override
    public AuthFunction queryAuthFunction(AuthFunction authFunction) {
        return functionMapper.queryAuthFunction(authFunction);
    }

    @Override
    public int deleteAuthFunction(AuthFunction authFunction) {
        return functionMapper.deleteAuthFunction(authFunction);
    }

    @Override
    public int modifyOrderId(AuthFunction ath) {
        return functionMapper.modifyOrderId(ath);
    }

    @Override
    public int modifyFunctionStatus(AuthFunction ath) {
        return functionMapper.modifyFunctionStatus(ath);
    }
}
